package cn.com.shopec.erp.product.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * @ClassName: CommodityCat
 * @Description: 商品分类实体
 * 
 */
@Entity
@Table(name = "TBL_COMMODITY_CAT")
public class CommodityCat {
	/** id */
	private String id;
	/** 分类编号 */
	private String catNo;
	/** 分类名称 */
	private String catName;
	/** 父分类编号 */
	private String catPno;
	/** 描述 */
	private String description;
	/** 删除标识（0：已删除，1：未删除） */
	private int deleteFlag;
	/** 创建时间 */
	private String createTime;
	/** 更新时间 */
	private String updateTime;
	/** 编号 **/
	private String no;

	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "ID", unique = true, nullable = false, length = 32)
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "CAT_NO")
	public String getCatNo() {
		return catNo;
	}

	public void setCatNo(String catNo) {
		this.catNo = catNo;
	}

	@Column(name = "CAT_NAME")
	public String getCatName() {
		return catName;
	}

	public void setCatName(String catName) {
		this.catName = catName;
	}

	@Column(name = "CAT_PNO")
	public String getCatPno() {
		return catPno;
	}

	public void setCatPno(String catPno) {
		this.catPno = catPno;
	}

	@Column(name = "DESCRIPTION")
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "DELETE_FLAG")
	public int getDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(int deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	@Column(name = "CREATE_TIME")
	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	@Column(name = "UPDATE_TIME")
	public String getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name = "no")
	public String getNo() {
		return no;
	}

	public void setNo(String no) {
		this.no = no;
	}
}
